package restful.service;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;

import domainspecific.types.Interval;
import domainspecific.types.MeterReadings;

@Path("/meterreadings/meter/{meterID}/{tStart}/{tEnd}/{interval}")
public class MeterReadingsRestService {
	// The Java method will process HTTP GET requests
	@GET
	// The Java method will produce content identified by the MIME Media
	@Produces({"application/xml","application/json"})
	public MeterReadings meterReadings(@PathParam("meterID") String meterID, @PathParam("tStart") long tStart, @PathParam("numReadings") long numReadings, @PathParam("interval") Interval interval) {	
		return new MeterReadings(numReadings);
	
	}
	
}
